import { get, post } from '/@/api/http'
const serverContextPath = '/example-server'
export const exampleApi = {
	getSysLogInfo: () => {
		return get({
			url: serverContextPath + '/feignTest/getSysLogInfo'
		})
	},
	getProcessDefinitionList: () => {
		return post({
			url: serverContextPath + '/workflow//model/list',
			data: {
				page: 1,
				pageSize: 10,
				param:{
					searchName: '',
				},
			},
		})
	},
	sendAiCompletion: (message: string) => {
		return post({
			url: serverContextPath + '/ai/aiCommonApi/completion',
			data: message,
		})
	},
	sendAiStreamCompletion: (message: string) => {
		return post({
			url: serverContextPath + '/ai/aiCommonApi/streamCompletion',
			data: message,
		})
	},
	sendAiGenImg: (message: string) => {
		return post({
			url: serverContextPath + '/ai/aiCommonApi/genImg',
			data: message,
		})
	}

}
